package BehaviorModel.commandModel;

/**
 * 功能描述: 电视机关闭
 * 2024/02/14
 *
 * @see Command
 * ZhangYi
 */
public class TVOffCommand implements Command{

    private TVReceive tvReceive ;

    public TVOffCommand(TVReceive tvReceive) {
        this.tvReceive = tvReceive;
    }

    @Override
    public void execute() {
        tvReceive.off();
    }

    @Override
    public void undo() {
        tvReceive.on();
    }
}
